package com.polaris.live.viewmodel

import androidx.lifecycle.MutableLiveData
import com.polaris.live.common.network.requestLoading
import com.polaris.live.common.network.state.ResultState
import com.polaris.live.net.userService
import com.polaris.live.resp.go_resp.AppealBean

/**
 * AccountAppealViewModel
 *
 * @author Created by 长空 on 2023/9/10 01:48
 * @since 1.0.0
 */
class AccountAppealViewModel : SetLiveImageViewModel() {

    val appealLiveData = MutableLiveData<ResultState<Any>>()

    /**
     * 申诉
     */
    fun appeal(appealBean: AppealBean) {
        requestLoading({ userService.appeal(appealBean) }, appealLiveData)
    }
}